﻿using com.iot.core.annotation;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Linq;

namespace com.iot.core.data.entity
{
    [Schema(Name = "API控制器表", Description = "")]     
    public class HtCtl : BaseEntity, ISoftDeletedEntity
    {




        [Comment("代码名称")]
        [Schema(Name = "代码名称", Description = "")]
        [MaxLength(20)]
        public string PrjName { get; set; } = "";


        [Comment("CtlFullName")]
        [Schema(Name = "CtlFullName", Description = "")]
        [MaxLength(100)]
        public string CtlFullName { get; set; } = "";


        [Comment("路由规则")]
        [Schema(Name = "路由规则", Description = "")]
        [MaxLength(100)]
        public string Route { get; set; } = "";


        [Comment("名称")]
        [Schema(Name = "名称", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50)]
        public string Name { get; set; } = "";


        [Comment("备注")]
        [Schema(Name = "备注", Description = "")]
        public string Memo { get; set; } = "";


        [Comment("创建日期")]
        [Schema(Name = "创建日期", Description = "")]
        public DateTime CrtDt { get; set; }


        [Comment("修改日期")]
        [Schema(Name = "修改日期", Description = "")]
        public DateTime EdtDt { get; set; }


        [Comment("删除标志")]
        [Schema(Name = "删除标志", Description = "")]
        public bool Deleted { get; set; }

    }
}
